package com.vichat.online.entity;
 

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/***************
 *author: autogen
 *version: 2018-11-17 00:33:32.254
 */
@Entity
@Table(name = "stat_online_user", catalog = "onlinedb")
public class StatOnlineUser implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "stat_online_user";

    /** */
	public static final String ALIAS_UID = "uid";
    /** */
	public static final String ALIAS_PARTY_ID = "party_id";
    /** */
	public static final String ALIAS_U_ADDRESS = "u_address";
    /** */
	public static final String ALIAS_IM_DISPLAY_STATE = "im_display_state";
    /** */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_IN_TIME = "in_time";
    /** */
	public static final String ALIAS_OUT_TIME = "out_time";
    /** */
	public static final String ALIAS_UP_TIME = "up_time";
	
	

 	@Id
	@Column(name = "uid", unique = true, nullable = false)
    public java.lang.Long uid = 0l;
  
 	@Column(name = "party_id")
    public java.lang.Long partyId;
  
 	@Column(name = "u_address")
    public java.lang.String uAddress;
  
 	@Column(name = "im_display_state")
    public java.lang.Long imDisplayState;
  
 	@Column(name = "state")
    public java.lang.Long state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "in_time")
    public java.util.Date inTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "out_time")
    public java.util.Date outTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "up_time")
    public java.util.Date upTime;
  





	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.String getUAddress() {
		return this.uAddress;
	}
	
	public void setUAddress(java.lang.String value) {
		this.uAddress = value;
	}

	public java.lang.Long getImDisplayState() {
		return this.imDisplayState;
	}
	
	public void setImDisplayState(java.lang.Long value) {
		this.imDisplayState = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getInTime() {
		return this.inTime;
	}
	
	public void setInTime(java.util.Date value) {
		this.inTime = value;
	}

	public java.util.Date getOutTime() {
		return this.outTime;
	}
	
	public void setOutTime(java.util.Date value) {
		this.outTime = value;
	}

	public java.util.Date getUpTime() {
		return this.upTime;
	}
	
	public void setUpTime(java.util.Date value) {
		this.upTime = value;
	}


	
	public StatOnlineUser() {
	}
	
	public StatOnlineUser(boolean qryflag) {
	    if(qryflag){
	    		this.uid = null;
				this.partyId = null;
				this.uAddress = null;
				this.imDisplayState = null;
				this.state = null;
				this.inTime = null;
				this.outTime = null;
				this.upTime = null;
			    }
	}


	public StatOnlineUser(
	    java.lang.Long inUid,
	    java.lang.Long inPartyId,
	    java.lang.String inUAddress,
	    java.lang.Long inImDisplayState,
	    java.lang.Long inState,
	    java.util.Date inInTime,
	    java.util.Date inOutTime,
		java.util.Date inUpTime
	 ) {
		super();
				this.uid = inUid;
				this.partyId = inPartyId;
				this.uAddress = inUAddress;
				this.imDisplayState = inImDisplayState;
				this.state = inState;
				this.inTime = inInTime;
				this.outTime = inOutTime;
				this.upTime = inUpTime;
			}


	@Transient
	public java.util.Date lastTime;

	public Date getLastTime() {
		return lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}
}

